package com.example.yin.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.time.LocalDateTime;

@TableName(value = "base_category")
@Data
public class BaseCategory {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer parentId;

    private Integer grade;
    private Integer enabled;
    private Integer seqNo;
    private String remark;

    private Long createBy;
    private Long updateBy;
    private Long deleteBy;

    private LocalDateTime gmtCreate;
    private LocalDateTime gmtUpdate;
    private LocalDateTime gmtDelete;

    private Long version;

    private Integer delFlag;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
